﻿package com.mttang.event {

import flash.events.Event;
	public class JEvent extends Event {
		private var obj : Object;
		/**
		 * 构造
		 * @param _obj 增加一个 object 参数
		 */
		public function JEvent(type : String,_obj : Object = null, bubbles : Boolean = false, cancelable : Boolean = false) {
			super(type, bubbles, cancelable);
			this.obj = _obj;
		}

		/**
		 * 隐式传递方法:取得 info 值
		 */
		public function get info() : Object {
			return this.obj;
		}
		/**
		 * 取得参数信息
		 */
		public override function toString() : String {
			return formatToString("Event:", "type", "info", "bubbles", "cancelable");
		}
	}
}
